package net.sx.minemodule.mvp.item;

import android.view.View;

import com.alibaba.android.arouter.launcher.ARouter;
import com.homegoods.aroutercomment.ARouterPath;
import com.homegoods.classify.model.Constant;
import com.kedll.library.mvp.BaseItem;

import net.sx.minemodule.R;
import net.sx.minemodule.mvp.bean.GoodsBean;

/**
 * @author 11470
 */
public class GoodsItem extends BaseItem<GoodsBean> {

    public GoodsItem(GoodsBean data) {
        super(data);
    }

    @Override
    public int getLayout() {
        return R.layout.mine_item_mine_order_two;
    }

    public String getGoodsImgPath() {
        return Constant.SERVER_URL + getData().getGoodsImgPath();
    }

    public String getGoodsName() {
        return getData().getGoodsName();
    }

    public void orderClick(View view) {
        ARouter.getInstance().build(ARouterPath.PATH_MINE_ORDER_DETAIL).navigation();
    }

}
